package com.cloud.service.impl;

import com.cloud.service.IOrderService;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.stereotype.Service;

@Service
@EnableAsync
public class OrderService implements IOrderService {
    @Override
    @Async("threadPoolPro")
    public void doThreadPoolTask(String order) {
        System.out.println(order + "->" + Thread.currentThread().getName());
    }


}
